# from apscheduler.schedulers.blocking import BlockingScheduler
# import time
#
#
# def test_job():
#     print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time())))
#
#
# test_job()
#
# scheduler = BlockingScheduler()
#
# scheduler.add_job(test_job, 'interval', seconds=5, id='test_job')
#
# scheduler.start()
import json

import jsonpath

data = {
    "code": 200,
    "success": True,
    "message": "操作成功",
    "data1": [
        {
            "id": 1,
            "create_time": "2024-04-19T03:36:11.060264",
            "update_time": "2024-04-19T03:36:11.060264",
            "is_deleted": 0,
            "project_id": 1,
            "name": "11111",
            "11111": {
                "test1": "1",
                "test2": "2",
            },

        },
        {
            "id": 1,
            "create_time": "2024-04-19T03:36:11.060264",
            "update_time": "2024-04-19T03:36:11.060264",
            "is_deleted": 0,
            "project_id": 1,
            "name": "11111",
            "11111": {
                "test1": "1",
                "test2": "2",
            },

        }
    ],
}

real_value = jsonpath.jsonpath(data, '$.data1.11111.test1')
print(real_value)
if real_value:
    print(str(real_value[0]))
